package com.twu.biblioteca.Domain;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by hjli on 9/11/14.
 */
public class RecordService {

    private Map<String, String> records;

    public RecordService(){
        records = new HashMap<String, String>();
    }

    public String listRecords(){
        return records.toString();
    }
    public void add(String bookId, String userName){
        records.put(bookId, userName);
    }

    public void remove(String bookId){
        records.remove(bookId);
    }

}
